<?php

use think\migration\Migrator;
use think\migration\db\Column;

class BasicEpaPeople extends Migrator
{
    /**
     * 基本信息 - 环保局人员
     */
    public function change()
    {
        $table = $this->table('basic_epa_people');
        $table
            //step1
            ->addColumn('username', 'string', ['limit' => 30, 'comment' => '员工姓名',])
            ->addColumn('mobile', 'string', ['limit' => 30, 'comment' => '手机号码',])
            ->addColumn('create_time', 'integer', ['limit' => 11, 'comment' => '创建时间',])

            //注释
            ->setComment('基本信息 - 环保局人员')
            //引擎
            ->setEngine('InnoDB')
            ->save();
    }
}
